package br.com.upis.sispat.view;

import java.io.Serializable;

import javax.annotation.PostConstruct;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("session")
public class ApplicationView implements Serializable {

	private static final long serialVersionUID = 4741409454163494312L;
	private boolean highcontrast;
	private String skin = "classic";
	@PostConstruct
	public void init() {

	}

	public void mudaConstraste() {

		if (highcontrast) {
			highcontrast = false;
			setSkin("classic");
		} else {
			highcontrast = true;
			setSkin("apabbSkin");
		}

	}

	public boolean isHighcontrast() {
		return highcontrast;
	}

	public void setHighcontrast(boolean highcontrast) {
		this.highcontrast = highcontrast;
	}
	public String getSkin() {
		return skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}


}
